home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet multimedia
/
Animacje, filmy i prezentacje
/
Modelowanie 3D
/
Wings 3D 0.98.35
/
wings-0.98.35.exe
/
lib
/
standard.vs
< prev
next >
Wrap
Text File
|
2006-07-19
|
665b
|
27 lines
//
// standard.vs
//
// Pass through vertex shader.
//
// Copyright (c) 2006 Dan Gudmundsson
//
// See the file "license.terms" for information on usage and redistribution
// of this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: standard.vs,v 1.2 2006/01/27 15:17:56 dgud Exp $
//
varying vec2 w3d_uv;
varying vec3 w3d_pos;
void main(void)
{
// UV coords comes here since we are actually drawing on a texture
w3d_uv = gl_Vertex.xy;
// The vertex positions comes here in world space
w3d_pos = gl_MultiTexCoord1.xyz;
vec4 Position = gl_Vertex;
gl_Position = gl_ModelViewProjectionMatrix * Position;
}